<?php
/**
 * Created by Alan.
 * User: Alan
 * Date: 2018\10\9 0009
 * Time: 19:31
 */

namespace app\bis\controller;


use app\common\model\Category;
use app\common\model\City;

class Deal extends Base
{
    //团购列表
    public function index()
    {
        return $this->fetch();
    }

    //团购商品添加
    public function add()
    {
        //获取一级城市数据
        $citys = City::getNormalCityByParentId();
        //一级栏目数据
        $categorys = Category::getNomalCategoryByParentId();
        return $this->fetch('',[
            'citys'=> $citys,
            'categorys' => $categorys
        ]);
    }
}